<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="../semantic/dist/semantic.min.css">
    <title>semantic-ui-dimmer</title>
    <style>

    </style>
</head>

<body>
    <div class="ui header dividing">Dimmer</div>
    <div class="ui container">

        <div class="ui modal first">
            <h2 class="header">
                删除文章
            </h2>
            <div class="content">
                删除文章同时也会删除文章的所有评论，确定要删除吗？
            </div>
            <div class="actions">
                <button class="ui negative button">否</button>
                <button class="ui positive button">是</button>
            </div>
        </div>

        <div class="ui modal second">
            <h2 class="header">
                正在删除
            </h2>
            <div class="content">
                <div class="ui progress active">
                    <div class="bar" style="width: 100%"></div>
                </div>
            </div>
        </div>

    </div>

    <script src="../../node_modules/jquery/dist/jquery.min.js"></script>
    <script src="../../semantic/dist/semantic.min.js"></script>
    <script>
        $('.ui.first').modal('show');
        $('.ui.second')
        .modal({
            // onShow: function () {
            //     alert('显示出来了')
            // },
            // onVisible: function () {
            //     $('.ui.second').modal('hide')
            // }
        })
        .modal(
            'attach events',
            '.first.modal .positive.button',
            'show'
        )
    </script>
</body>

</html>
